import { Tag} from 'antd';
import { PRIORUTY_LEVEL } from '@/consts/project'


const PriorityLevel = (props) => {
    const {
        priorityLevel
    } = props

    if (priorityLevel || priorityLevel === 0) {
        return <Tag color={PRIORUTY_LEVEL[priorityLevel].color}>{PRIORUTY_LEVEL[priorityLevel].name}</Tag>
    }
    return  (
    <Tag>/</Tag>
    )
}

export default PriorityLevel;